package com.ss;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.ss.core.model.Demo;
import com.ss.dao.SummerInstanceDao;
import com.ss.plugins.sql.core.SummerQuery;
import com.ss.plugins.sql.model.SummerPage;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.List;

/**
 * 审批流
 * @author xia17
 */
@SpringBootApplication

@EnableTransactionManagement
public class SummerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SummerApplication.class, args);
    }

    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        // paginationInterceptor.setLimit(你的最大单页限制数量，默认 500 条，小于 0 如 -1 不受限制);
        return paginationInterceptor;
    }

}
